<!DOCTYPE html>
<html lang="zh-CN" class="dark">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>X-Brain Agent - 智能知识管理平台</title>
    <link rel="stylesheet" href="css/dark-theme.css">
    <!-- Tailwind CSS -->
    <script src="https://cdn.tailwindcss.com"></script>
    <!-- Font Awesome -->
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
</head>
<body class="bg-gray-900 text-gray-100">
    <!-- Sidebar -->
    <div class="fixed inset-y-0 left-0 w-64 bg-gray-800 shadow-lg">
        <div class="flex items-center justify-center h-16 bg-gray-700">
            <h1 class="text-xl font-bold">X-Brain Agent</h1>
        </div>
        <nav class="mt-4">
            <a href="index.html" class="flex items-center px-6 py-3 bg-gray-700 text-white">
                <i class="fas fa-home mr-3"></i>
                仪表盘
            </a>
            <a href="knowledge-base.html" class="flex items-center px-6 py-3 text-gray-300 hover:bg-gray-700">
                <i class="fas fa-book mr-3"></i>
                知识库
            </a>
            <a href="chat.html" class="flex items-center px-6 py-3 text-gray-300 hover:bg-gray-700">
                <i class="fas fa-comments mr-3"></i>
                智能对话
            </a>
            <a href="search.html" class="flex items-center px-6 py-3 text-gray-300 hover:bg-gray-700">
                <i class="fas fa-search mr-3"></i>
                语义搜索
            </a>
            <a href="agent.html" class="flex items-center px-6 py-3 text-gray-300 hover:bg-gray-700">
                <i class="fas fa-robot mr-3"></i>
                智能代理
            </a>
            <a href="file-manager.html" class="flex items-center px-6 py-3 text-gray-300 hover:bg-gray-700">
                <i class="fas fa-folder mr-3"></i>
                文件管理
            </a>
            <a href="#" class="flex items-center px-6 py-3 text-gray-300 hover:bg-gray-700">
                <i class="fas fa-cog mr-3"></i>
                系统设置
            </a>
        </nav>
    </div>

    <!-- Main Content -->
    <div class="ml-64 p-8">
        <!-- Header -->
        <header class="flex justify-between items-center mb-8">
            <div>
                <h2 class="text-2xl font-bold">欢迎使用 X-Brain Agent</h2>
                <p class="text-gray-400">智能知识管理平台</p>
            </div>
            <div class="flex items-center">
                <div class="relative mr-4">
                    <input type="text" placeholder="全局搜索..." 
                           class="bg-gray-700 text-gray-100 px-4 py-2 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500">
                    <i class="fas fa-search absolute right-3 top-3 text-gray-400"></i>
                </div>
                <div class="flex items-center">
                    <img src="assets/avatar.png" alt="用户头像" class="w-8 h-8 rounded-full">
                    <span class="ml-2">张三</span>
                </div>
            </div>
        </header>

        <!-- Dashboard Cards -->
        <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 mb-8">
            <div class="bg-gray-800 p-6 rounded-lg shadow-lg">
                <div class="flex items-center justify-between mb-4">
                    <h3 class="text-xl font-semibold">知识库数量</h3>
                    <i class="fas fa-database text-blue-500 text-2xl"></i>
                </div>
                <p class="text-3xl font-bold">12</p>
                <p class="text-gray-400">个活跃知识库</p>
            </div>
            <div class="bg-gray-800 p-6 rounded-lg shadow-lg">
                <div class="flex items-center justify-between mb-4">
                    <h3 class="text-xl font-semibold">文档总数</h3>
                    <i class="fas fa-file-alt text-green-500 text-2xl"></i>
                </div>
                <p class="text-3xl font-bold">247</p>
                <p class="text-gray-400">份文档</p>
            </div>
            <div class="bg-gray-800 p-6 rounded-lg shadow-lg">
                <div class="flex items-center justify-between mb-4">
                    <h3 class="text-xl font-semibold">查询次数</h3>
                    <i class="fas fa-search text-purple-500 text-2xl"></i>
                </div>
                <p class="text-3xl font-bold">1,892</p>
                <p class="text-gray-400">本月查询</p>
            </div>
        </div>

        <!-- Recent Activity -->
        <div class="bg-gray-800 rounded-lg shadow-lg p-6">
            <h3 class="text-xl font-semibold mb-4">最近活动</h3>
            <div class="space-y-4">
                <div class="flex items-center">
                    <div class="w-10 h-10 rounded-full bg-blue-500 flex items-center justify-center">
                        <i class="fas fa-plus text-white"></i>
                    </div>
                    <div class="ml-4">
                        <p class="font-semibold">新建知识库</p>
                        <p class="text-gray-400">产品文档 - 2小时前</p>
                    </div>
                </div>
                <div class="flex items-center">
                    <div class="w-10 h-10 rounded-full bg-green-500 flex items-center justify-center">
                        <i class="fas fa-file text-white"></i>
                    </div>
                    <div class="ml-4">
                        <p class="font-semibold">添加文档</p>
                        <p class="text-gray-400">技术规范.pdf - 4小时前</p>
                    </div>
                </div>
                <div class="flex items-center">
                    <div class="w-10 h-10 rounded-full bg-purple-500 flex items-center justify-center">
                        <i class="fas fa-sync text-white"></i>
                    </div>
                    <div class="ml-4">
                        <p class="font-semibold">更新知识库</p>
                        <p class="text-gray-400">客户支持 - 6小时前</p>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script src="js/main.js"></script>
</body>
</html>
